class Singleton(object):

    def __new__(cls):
        print("cls:", cls)
        if not hasattr(cls, 'instance'):
            cls.instance = super().__new__(cls)
        return cls.instance
    
    def __init__(self):
      self.count = 0

    def add(self, x):
        self.count += 1
        # print("self.count", self.count)


s = Singleton()
s.add(1)
s.add(2)

print("s.count", s.count)
